﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MyWeb.Data;
using System.Data;

namespace MyWeb.Business
{
    public class ProductService
    {
        public static ProductController db = new ProductController();

        #region[Product_Insert]
        public void Product_Insert(ProductInfo data)
        {
            db.Product_Insert(data);
        }
        #endregion

        #region[Product_Update]
        public void Product_Update(ProductInfo data)
        {
            db.Product_Update(data);
        }
        #endregion

        #region[Product_Delete]
        public void Product_Delete(string Id)
        {
            db.Product_Delete(Id);
        }
        #endregion

        #region[Product_GetByAll]
        public DataTable Product_GetByAll()
        {
            return db.Product_GetByAll();
        }
        #endregion

        #region[Product_GetById]
        public DataTable Product_GetById(string Id)
        {
            return db.Product_GetById(Id);
        }
        #endregion

        #region[Product_GetByTop]
        public DataTable Product_GetByTop(string Top, string Where, string Order)
        {
            return db.Product_GetByTop(Top, Where, Order);
        }
        #endregion
    }
}
